package com.yi.serviceorder.remote;


import com.yi.internalcommon.dto.ResponseResult;
import com.yi.internalcommon.request.PointRequest;
import com.yi.internalcommon.responese.TerminalResponse;
import com.yi.internalcommon.responese.TrsearchResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("service-map")
public interface ServiceMapClient {
    /**
     * 搜索终端
     * @param center
     * @param radius
     * @return
     */
    @PostMapping("/terminal/aroundsearch")
    ResponseResult<List<TerminalResponse>> aroundSearch(@RequestParam("center") String center,@RequestParam("radius") Integer radius);

    /**
     * 轨迹查询
     * @param tid
     * @param starttime
     * @param endtime
     * @return
     */
    @PostMapping("/terminal/trsearch")
    ResponseResult<TrsearchResponse> trsearch(@RequestParam("tid") String tid,@RequestParam("starttime") Long starttime,@RequestParam("endtime") Long endtime);
}
